Bugfix 11845
[+] Added a check to ensure that the decree is not set to NULL before determining whether mapping is working and clearing the decree.
[+] Added a check to ensure that the decree is not set to NULL before determining whether mapping is working and clearing the decree.