Fixed bug out of domain for mesh with positive and negative matsubara frequencies

Case with negative and positive freqs was not handled properly.
Note: may not be the most elegant solution (always same code for all cases...)