Fix undefined constant error

Evidently this case is never hit as middleware because options is always specified, but if it is not, that constant is undefined.