Prevent Qt crash at startup with an empty data directory

Fixes issue #2239 -- return the main network genesis block time if pindexBest has not yet been set.