fix for #7284

https://dev.icinga.org/issues/7284