CORAL-136: check for root resource correctly