Fix for undefined method `display_name' for nil:NilClass

On one large Xcode project I get an `undefined method display_name for nil:NilClass` error when running `xcodeproj show`.   This change prevents the error and show runs to completion.