Add some checks to see if the content element exists

This *might* help dismissal not break when not using combined mode.