The solvability “in the small” of the inverse problem for a potential with variable density in the two-dimensional case