Add in more undefined query result member checks and debuggine console.warns