Fix to handle the format is not in the respondTo format options

If the parameter format is not in one of the respondTo formats request take long time before times out.  Adding a conditional check in the variants if the format exists or not speeds up the request processing.