Fix extent calculation of KisMask
Some time ago the masks started to support indirect painting, therefore their extent-related methods should also combine the corresponding methods of temporary target
BUG:394438