check for null references on $destroy and updateGridLayout
Version 2.0.10 release

Closes #1142