Added a guard around trying to operate on a parameter that may be maliciously omitted (thus crashing the server)