Fix nginx default SSL configuration

Was missing a conditional in the when statement.