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