Jcs email preview

Fixes null department exception when previewing email template