Splitting if statement for jet smearing into two so that the generated event information is not accessed in the case of data.