fix for fatal error on HHVM paradedev/cms#2703