Fixes AI canUseTopic() without camera exploit

Fixes runtime in ai/Life()
Merge pull request #6110 from tkdrg/aiaiai

Fixes exploit that lets AIs use machinery even after cameras are disabled