BUG: Fix conditional for underlying price in io.data.options.

Refactor and regression test.

Fixes #7685