Fixed compatibility with Grape HEAD, related to https://github.com/intridea/grape/pull/809.