Fix one compatibility bug with old versions of Sprockets.
Back patch around a bug in earlier Sprockets versions that affects Ruby >= 2.0.