Fix IE9 Bug: toggleRadio, toggleCheckbox

On IE 9  : 
click on checkbox or radio button label throw exception
input is undefined, and therefore throw exception. 
For this particular case I added an extra check 
to avoid javascript error
Merge pull request #2889 from jbijoux/patch-1

Fix IE9 Bug: toggleRadio, toggleCheckbox