Feature summary
If somebody is checking user names by s = mw.config.get( "wgUserName" ) that s could be null today. When checked for future behaviour, mw.util.isTemporaryUser( s ) is crashing since the parameter is supposed to be a string.
Use case(s)
In case the parameter is null, this should be permitted and the result is true since this is an anonymous user. The process should continue for anonymous temporary users, which means not registered.
Benefits
Many people are rewriting codes now, which need to deal with the current null situation as before, but should be prepared for future answers when mw.config.get( "wgUserName" ) is always a string. This migration should be supported.