Add check validity in link() and delink() to ensure they are not being invoked in an incorrect state
Add check validity in link() and delink() to ensure they are not being invoked in an incorrect state

icaughley/domgen,william-ml-leslie/domgen,realityforge/domgen,realityforge/domgen,icaughley/domgen