eacmv: Make sure a reference frame exists before referencing it