getInputTable behaves parallel to getOutputTable

It returns empty_input with the default index of 0 and will not fail with
a lookup in input data and a non-existent index.

Fixes #365