Make sure middleware_options is not set to nil, in a rails fashion