Fix null request error

Signed-off-by: Marco Rivadeneyra <marcorivm@gmail.com>