Enrich jurl() with some error checking