Fix null pointer exception in OPTIONS request.