Handle no selected model in queries extension