The Nelson-Seiberg theorem revised