Bug in debug mode in WebStorm + jsDom.