Fixed exception during empty rid creation