BUG: Fix lombscargle ZeroDivisionError

Change calculation of tau to use atan2 function instead of atan.

closes gh-3787