IE8 fix: .apply arguments must not be null