Check for option->styleObject before accessing it
BUG: 395028 FIXED-IN: 5.13.0
Differential Revision: https://phabricator.kde.org/D13336