[PATCH 1/2] unit: Remove unnecessary NULL pointer checks.