fix #6 with try-catch statement

onResizeX / Y callback exceptions are not controllable from this directive.
so I use try-catch statement to remove event handler from document.