Fixed possible JS undef exception in AppPropertyGrid