request: conditionally add the @params parameter

in certain cases, adding a @params parameter with the value
N'' will cause sp_execsql to fail (eg: a CREATE FUNCTION statement).
If there are no parameters in the request, don't bother adding the
parameter (which causes the statement to succeed).