CMS-3358 Add assertions for Element and ElementHelper

Added assertions in Element and ElementHelper
Merge pull request #705 from enonic/CMS-3358

CMS-3358 Add assertions for Element and ElementHelper