IDE-1280: added a check for empty concurrent map in order to avoid serialization incompatibility between JDK8 and previous versions