Fix invalid use of $this->request->query and post

It's not valid to pass a default argument to these methods, as they act
as setters in this case. Use a ternary (yuck) to set a default value to
use instead of the null returned when the key is not present - for now.
Fix further invalid query/post usage with default arguments