Existence and nonexistence of nontrivial solutions for the Schrödinger-Poisson system with zero mass potential