Update AbstractSQSConnector.java

Fix NullPointerException that can happen during Tomcat shutdown.