ISPN-4053 WriteSkew not throwing an exception for AtomicMap in REPL and ...

...DIST mode

Added tests to repl and dist mode. Fixed NPE.

Note: the problem was already fixed indirectly by other issue. added tests to confirm. 

https://issues.jboss.org/browse/ISPN-4053