Fixes an issue where the IRI could be generated with a trailing ?# at th...

...e end, which results in resource not found errors on some feeds.

Fix for issue #366 (https://github.com/simplepie/simplepie/issues/366).