EZP-23208: fixed the wrong version check in the async. publishing ezjscore func