Correctly sort metacontact data if one of the jids is a transport and not in our roster. Fixes #4208, #4195.