Fix crash while importing transactions and matching schedules
This amends commit 9f702f34e9a6197f7d526467505ddaf56f6c5c1e such that it supports a pointer to the parent widget being the nullptr