CMS-3358 Add assertions for Element and ElementHelper

Added assertions in Element and ElementHelper