In some odd conditions the presenting view is nil, added code to protect...

... from crashing