Fixes an ObjC migrator crash when last decl
in file is an enum.