Fix possible NPE if object not loaded.
Remove logger used while investigating the issue.
Merge pull request #2968 from jburel/projection-bug

Fix possible NPE if object not loaded.