LPS-32912 At this moment, we must do this extra check in order to be sure that the servlet is only destroyed when the module framework is enabled. In the future this check will not be needed because the module framework will be available at any time