prevent empty alias in querybuilder. fix #336