Fix for #1273 on 1.3 branch, cannot open vendor invoice, regression from #1260