[android] Fix TableQueryCallback back-compatibility