Fix TagAPI fix for old TagAPI versions

Signed-off-by: Ross Allan <rallanpcl@gmail.com>