Fix exception in case when object file really neccessary.