Revert "Fix crash"
This reverts commit 802639c913622fcd0a7b7dcfd39628fec0cf99e6.
This commit crashes Krita on creation of a new document (tested on QPainter canvas).