Behavior of an inhomogeneous HTS film in the regime of a resistive current limiter