Converts an if expression checking variable being null right after initializing it to an elvis operator in the initializer (if applicable)