Fix #603: prevent WebKit from throwing DOM Exception when editor lost focus

This fix is solving problem described here:
https://github.com/SitePen/dgrid/issues/603