added try - catch around focus

added try - catch around focus because causing issues in certain IE
browsers
fix IE8 issue related to month and year picker