[BUGFIX] RequireOnce removal leaves semicolon

Resolves: #58708