Safer, more defensive, template/view name for body class via duck typing.

Fixes conflict with <body> class attribute improvement in TinyMCE.

See comment on 1c0b89ee3556b1f42e932129058c2392275e896b#commitcomment-3832049

Conflicts:
	plone/app/layout/globals/layout.py