Fix attempt to #2956: Make null check after getRecord 

This is a fix attempt to getting https://github.com/hazelcast/hazelcast/issues/2956
- One can get null as a result of expiration. So it may lead NPE.