Catch "java.lang.UnsupportedOperationException: This isn't a hierarchical URI." on invalid URI inputs.