add check if the merged tag has children

Authored by mqualmann on Mar 21 2018, 9:13 PM.