Update ResourceIterator.php

fixed last edit had the cursor as last item I forgot to change  $result['entities'] back to $result which I change for some testing and forgot to change back.