CLOUDIFY-1526 fixed scan for leaked nodes method