Remove redundant null check

Fix: Remove a null check which isn't required.