Remove unneeded nullptr checks (Fixes #47)