Remove redundant check

`max_nesting` is a `uint32_t`, so the given test can never succeed.