attrib: Fix service discovery when end handle for last service is 0xFFFF

This ending condition is allowed by Core spec ESR06 (Erratum 4063).
attrib: Add ending condition checks to iterative procedures in gatttool

These procedures are finished when the returned ATT error code is
"Attribute Not Found".