Fix null pointer exception in DefaultRequestHandler