Removing web loading listener before calling a timeout callback. Fixes issue 4606