fix for blacklight PR #960

Putting this into Scholarsphere because it looks like it will be a while before https://github.com/projectblacklight/blacklight/pull/960 gets into Blacklight.