Update ListResult.php

Fixed bug in key() referencing non-existent variable.