This is an old thread, but for others who find it, the answer was to refresh the documentmap before getting the new resource:
$modx->reloadContext('web');
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html