Don't print errors if display_errors is disabled (fixed #3)