Qutepart: 2 crash fixes