Fix the following issues: https://ci-stg.openmrs.org/sonar/drilldown/issues/org.openmrs:openmrs?&rule=findbugs%3ARCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE&rule_sev=CRITICAL&severity=CRITICAL
Example: https://ci-stg.openmrs.org/sonar/issue/show/0cb765a1-abfb-49c4-a4bc-5ce4bb326f8b?layout=false