Add verification if 'active' object exists before use it
Add verification if 'active' object exists before use it

'active' variable can be undefined in certain situations like after
first load and nothing selected/focused

raykendo/ESRI_REST_Diagnostics,raykendo/ESRI_REST_Diagnostics