Fix weird error message when absolute reference cannot be found