Prevent Internal Server Error when no response headers are set.