Additional fix for #2584. Errors were produced when tooltip was disabled.