Fixed a potential bug with SEI payload creation and a minor compiler warning