Explicit error when query param is empty 

When a param is missing from the query, the exception message is not helpful.
I also removed the read value from the message because it is hardly useful when not a scalar (e.g. "Notice: Array to string conversion" and only "Array" printed).