check if ServletContext is not null