Handle IE8 exception when date selection using keyboard

When you open the datepicker and select a date with the keyboard (using Enter or Space) an exception is thrown on IE8 when focusing.