Remove obsoleted nil checks.

Due to the json validation we can remove previously required nil checks.

This check is not related to the schema, the method can still be called with `nil`. Please add back that check.