prevent exception for increasing priority (#5547)
prevent exception for increasing priority (#5547)

Prevent exception for increasing priority

(cherry picked from commit db54611bae68035967be233b92447a33a5200f89)

mono/msbuild,mono/msbuild,mono/msbuild,mono/msbuild