Fixed #6 by checking if the stats object is empty (forgot to do that when optimizing for cocoonjs)