WC 2.1 & WC 2.2 compat fixes

* Fix Order Tracking in WC 2.1
(https://wordpress.org/support/topic/cant-track-orders?replies=1#post-60
36760)
* Fix notice when no results found
* Fix deprecated notice in WC 2.2