Fix for localQuery startsWith having differnent behavior than remoteQuery startsWith for empty strings.