Add support for empty predictions.
Add support for empty predictions.

Select non-empty elements before making hypothesis ID an index.
This avoids "non-empty take from an empty axes" error.

cheind/py-motmetrics,cheind/py-motmetrics