Fix segfault (checking for prev block of genesis).