Fixed segfault when no AMRs found.