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

Added tests to repl and dist mode. Fixed NPE.