Add error checking to SetDirectionOfProjection method
Fix for NPE when there are no inputs