Have a side hustle? This tax hack could help you recover losses