Fixed issue with null value for setAttribute in Firefox 3.5