Workaround for a fatal error on HHVM < 2.5

See https://github.com/facebook/hhvm/issues/1991