Fix NullPointerException issue on request parsing