don't try to add event listener on null value function property
this was throwing exceptions in firefox