v.22.6Bug Fix

Moving addDependency to startup() to prevent issues with dropped tables

This PR moving addDependency from constructor to startup() to avoid adding dependency to a dropped table, fix #37237. #37243 (vxider).