Fix missing default in query selection codegen.