Fixed pause bug

Pauses in the working period in which the issue is estimated to finish
were not being taken into account. This is now fixed.
Also remove flash message when pausing/unpausing.