fixes #347; fixed null pointer in isURI(); fixed dangling bundle if [!]