fix single double pipe issue and do not set e.attributes to null on ng-if