[BUGFIX] Make getFirstTag() return empty string for input without tag