The isoperimetric problem via direct method in noncompact metric measure spaces with lower Ricci bounds