CMS-3218 Remove buttons when content cannot be rendered.
Fixed toggle button that stayed always disabled.