Check for unschedule attribute only, if available.

This is the same as #3929, only for CMSSW_7_2_X.