Check to see if HeaderView is attached before removing. Closes #165