Fix for empty JomSocial queries