Respect PHP's configured error reporting.

The Gearman custom error handler previously handled all error types regardless of the configured error_reporting value.