Fencepost error in ERF extension header handling

Rare case error where the last ERF extension on a header will not be counted if the 'payload' of the ERF record is 0 bytes.

This can happen for example when a ERF_TYPE_PAD record has one or more extension headers.