Refs #13870; fixed issue where relatedItems div appeared wrongfully when autoRelations returned a generator with an empty list
Fixes #13870; display sorting select only if there are more than 10 results