Bug 951252 - Remove warning on undefined role when checking hidden status

There is too much output because in the default case, role is undefined.
As per bug 951252, let's disable the output.