Fix a crash introduced in 46d1dd8.