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

This ending condition is allowed by Core spec ESR06 (Erratum 4063).