Prevent rendering collapsed state if not collapsable

Fix applies to changes in 85417ac0

Signed-off-by: Byron Ruth <b@devel.io>