Checking for null objects in relationship key paths.