Fixing Redundant nullcheck of value known to be non-null issue.