check valid subsite before attempting to inherit #3226