Workaround for a puppet bug

hasstatus seems to be not working on the puppet version that we use.
Therfore this is a workaround. Should be investigated later.