Fix "Cannot redirect to a parameter hash!" error

Seems to be an issue on Ruby 2.1.4 but not 2.1.1.