installation: fix --drop-tables action
- Fixes --drop-tables action so that it works well even in situations where "otherwise required" tables do not exist anymore. (For example, dropping already dropped tables.) This used to work well in the past but stopped working some time ago, so this commit cleans the situation across modules.