The obstacle-mass constraint problem for hyperbolic conservation laws. Solvability