Ensure non deleted resources are returned in getLight.. and getSensor.. methods
Ensure non deleted resources are returned in getLight.. and getSensor.. methods

This also fixes rule resource re-indexing after delete and rejoin a device,
which required a deCONZ restart to work.

dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin