In some situations the console file path does not translate automatically to a valid URL, so let us make sure that it is (closes bug #2210).
Preventing a possible null pointer caused by the call of update method after subpanel cleanup was called (cleanup makes the component not usable).