[BUGFIX beta] Do not rely on Array.prototype.map for logging version.

Close #4553.