Protect phototransistor from emitter-collector breakdown
You could consider adding a diode as shown below:



This approach can be made to work in particular if the IR level sensing you are doing is "digital" in nature. The lower drop of a BAT54 may be desirable. 

If you are trying to actually measure analogue variation of the IR signal a more complex circuit may be required.