LPS-30219 fixed posible NPE when servelt ctx or request is null
LPS-30219 javadoc