BUG: Fix lombscargle ZeroDivisionError

Change calculation of tau to use atan2 function instead of atan.

closes gh-3787
Merge pull request #3788 from Jacobcvt12/lombscargle-atan

BUG: Fix lombscargle ZeroDivisionError