fixing issue where no connected objects resulted in a parameterless query being run