fix issue "The assignment to $mod is dead and can be removed."
Add error if view html tag is not found
Optimize if for module property on view html tag.