Fix build with new clang by using fully qualified enum value

Using unary operator ! on enum class type is not accepted anymore.