This is an improper integral, and the usual way these are handled is by taking limits at each point of discontinuity (in this case, at $\pi/2$ and $3\pi/2$, from both sides at each).
The result in this case is that the integral does not converge.
There is good reason to do this, even if there is symmetry in the problem. For example, consider $\int_{-1}^1 \frac{1}{x} dx$. There is symmetry there, but you get different answers with the following:
1. $\lim_{e\to 0+} \int_{-1}^{-e}\frac{dx}{x}+\int_{e}^1\frac{dx}{x}$
2. $\lim_{e\to 0+} \int_{-1}^{-e^2}\frac{dx}{x}+\int_{e}^1\frac{dx}{x}$
3. $\lim_{e\to 0+} \int_{-1}^{-e}\frac{dx}{x}+\lim_{f\to 0+}\int_{f}^1\frac{dx} {x}$
However if the third expression exists (it doesn't in this case), then it agrees with the first two. That is the definition that is in standard use.