Avoid errors during fallback selection when there are no fallbacks

This issue is fixed as part of legacy/trac#19071 (moved), I just needed a bug number.