Corrected empty work detection.
Trying to fix stats page.