Merge pull request #1196 from clebertsuconic/master

Fixing hard dependency on HornetQSession at JMSContext.acknowledge (what caused issued with HornetQRASession)
avoid NPE during shutdown of replication, after a fix on replication