fixing null reference for removeChild in IEs