in case params not set

Getting undefined error if params not set for request