Fix error when not in output buffering in PHP Error