Master reconciliation and statement import ama

should use context.get in case 'active_ids' is not defined in context