extend query object to fix breaking js if missing params