Fix spesh dump missing null and memory leak.

timotimo++ for discovering the former.