The end result is the same, so this isn't strictly needed - originally this patch fixed a segfault, but that segfault got fixed in a different way before merging this patch.