get_title fix

The method get_title() fails when title.text is None, wich happens when we have a Document with <title></title>.

This pull request fixes this issue, simply verifying if title.text is None, the same way it's done on shorten_title()