Fix error handling in server_content_type()