Direct observation of zero modes in a non-Hermitian nanocavity array