Bugfix: CreateNewBlock: Check that active chain has a valid tip before dereferencing it

Unlikely, but might as well check it...