fix for bugsnag-php version 2.0