Add sh5_additional to end tag and optimize output if no value is set in sh5_additional