bpv6: Prevent infinite loops
display_extension_block is supposed to return the current offset, not the number of bytes remaining, which can be less than the current offset and cause an infinite loop. In the case of errors, set lastheader and return the current offset to break out of loops.
(cherry picked from commit f2a0d25d)