Add isEmpty method to Stream and DecodeStream
Fix loading of fonts with empty font files (bug 866395 and issue 3522)