A question on the integral of a step function

In Apostol's "Mathematical Analysis", a step function on closed interval [a,b] is defined as follows (Page 148):

http://www.tuchuan.com/a/2010020206564827627.jpg

A step function on a general interval I and its integral over I are defined as follows (Page 253):

http://www.tuchuan.com/a/201002020701166419.jpg

But in the proof of Theorem 10.10 in page 259 (see figure below), the underlined sentence asserts the existence of over an arbitrary subinterval J. If assumes a constant value in some , while J=(c,d) with c<a and a<d<b, then is not a step function on J because we can not find a closed interval in J such that is 0 outside of this closed interval. In turn, the integral is undefinable. How to handle this problem? Thanks!

http://www.tuchuan.com/a/2010020207023017927.jpg