A few tweaks to help the clang static analyser avoid false alarms.
Removed an incorrect assertion.
Tab button background colour fix when no tabs present.