Update NoObjectExists.php

add exclude clause on query