check pop size before using

...) will return NULL and of course will crash because NULL doesn't have a fitness field