Preventing AttributeError: object has no attribute 'title', BUG #2786