Improving inputAutoExpand jQuery plugin's compatibility

Checking for isNaN() preventing an error from being caused in IE8.

Change-Id: I949686dad8fcda5bb10078f9627d26cf94e525d0