eng-1022 avoid NPE

git-svn-id: http://svn.terracotta.org/svn/ehcache@8705 b9324663-ca0f-0410-8574-be9b3887307d
eng-1022 merge 8705 in 4.1.x

git-svn-id: http://svn.terracotta.org/svn/ehcache@8706 b9324663-ca0f-0410-8574-be9b3887307d
eng-1022 merge 8705 in 4.0.x

git-svn-id: http://svn.terracotta.org/svn/ehcache@8707 b9324663-ca0f-0410-8574-be9b3887307d
eng-1022 merge 8705 in 4.1.1-rc

git-svn-id: http://svn.terracotta.org/svn/ehcache@8708 b9324663-ca0f-0410-8574-be9b3887307d