A Control Problem with Cost Functional Specified by Discontinuous Intergrands