Fix attempting to add header view after being destroyed. Closes #186.