Fix for ipads not behaving properly when using transforms
Don't break when there is no window object under node