Fixes NaN bug

According to https://developer.mozilla.org/en-US/docs/Web/CSS/calc#Browser_compatibility, iOS<=6.1.3 is not supported.