Add default value when no value is given for a request parameter

Related to #385