Fix crash that might occur in a situation where icinga should not crash...

refs #5356