Fix IE specific null pointer issues.