Fix case where there is no navigation controller