Could we add a comment here about what conditions can cause the cursor to be null?  I assume this is in case the provider for this URL has a bug, which is fair enough, since it can be from an arbitrary app.

Also, ImUrlActivity doesn't handle a null being returned from this function.