Fixes #286.

- Essentially, it is a Safari bug, and introduced code change is, ideally, not required. Not that the code change introduced is a workaround.
- Safari bug : https://bugs.webkit.org/show_bug.cgi?id=37514.