Repair printing SQL parameters, if the parameter is empty, cause an exception