Only add the priority level if it is set inside valid range.