Empty prices on sale bug fix & get_terms args filter on product categories dropdown function

Fix bug where when sale and regular prices empty the products are displayed as on sale

Fixes #3189 
Fixes #3218