Fixes https://github.com/intridea/grape/issues/825.