Protect against nil values.