Fixed crash on garbage code introduced by recent commit.