loplugin:salbool: Fix handling of potentially overriding functions

Change-Id: I63d00cf5ab1dac953fae07ca4eb4d987610551a2