feat(Api): Correct division-by-zero in cleanVaultOrphans API script (fixes #5215)