Detect whether 'sourceUrl' is present

Instead of try/catch to conditionally fetch it.