Handle uri=None In pisaFileObject.__init__()

I kept getting the cryptic error message "'NoneType' object has no attribute 'encode'" while working with the django-easy-pdf package. I traced the issue back to this edge case in xhtml2pdf.