Catch errors in selectionStart and setSelectionRange

In latest versions of Chrome, for input types which doesn't support them, throws error. This fix is to catch them and perform default operations instead.