total_offset(): silencing "Use of unitialized value in addition" warning when
an offset is undef