check for null references on $destroy and updateGridLayout
Merge pull request #1133 from mikeromano38/2.0.8-null-reference-on-destroy

check for null references on $destroy and updateGridLayout