abort QueryRemoteMapDetails early when uids is empty

fixes #5492