check view exists before destroy()
Merge pull request #2 from seanwoodward/fix-deactivate

check view exists before destroy()