Singular M-matrices and inverse positivity