Handle EOS when seeking with mad.

Fixes LS-650.