fix bad condition in prv_find_object()

When using the test client, you will retrieve the equivalent of coap://localhost:5683/1024  even though you e.g. get /1020 .
Unless there is something I missed in the spec, prv_find_object() search loop should be fixed with the proposed patch.