Fixed error msg on self-closed tag expansion