Fixes https://github.com/mootools/mootools-core/issues/2500