prevent error if element passed into angularize is null