Fixed compatibility with Grape HEAD.

Related to https://github.com/intridea/grape/pull/809.