Fix missing "if"

Thanks to Michele Serra
http://stacks.math.columbia.edu/tag/01V5#comment-116