Fix undefined function at cron time

* Alter method to check if shipment tracking should be used since
is_plugin_active() is not defined when cron runs