fixes possible segfault by wrong argument type
fixes possible segfault by wrong argument type

(see https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3611#issuecomment-761917726 for details)
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