Topic: fix handling of 0-length start/end markers