Only coerce to Option when needed
Only coerce to Option when needed

Fixes Homebrew/homebrew#24833.

reitermarkus/brew,alyssais/brew,AnastasiaSulyagina/brew,vitorgalvao/brew,maxim-belkin/brew,jmsundar/brew,amar-laksh/brew_sudo,nandub/brew,tonyg/homebrew,sjackman/homebrew,Homebrew/brew,reelsense/brew,Linuxbrew/brew,reitermarkus/brew,Linuxbrew/brew,toonetown/homebrew,JCount/brew,Homebrew/brew,maxim-belkin/brew,konqui/brew,rwhogg/brew,palxex/brew,mistydemeo/homebrew,reelsense/brew,konqui/brew,aw1621107/brew,mistydemeo/homebrew,mgrimes/brew,DomT4/brew,mahori/brew,jmsundar/brew,nandub/brew,alyssais/brew,claui/brew,ilovezfs/brew,EricFromCanada/brew,reitermarkus/brew,bfontaine/brew,mahori/brew,amar-laksh/brew_sudo,hanxue/linuxbrew,toonetown/homebrew,bfontaine/brew,MikeMcQuaid/brew,DomT4/brew,sjackman/homebrew,tonyg/homebrew,gregory-nisbet/brew,rwhogg/brew,gordonmcshane/homebrew,staticfloat/brew,tonyg/homebrew,gordonmcshane/homebrew,reitermarkus/brew,zmwangx/brew,mahori/brew,palxex/brew,vitorgalvao/brew,aw1621107/brew,muellermartin/dist,palxex/brew,rwhogg/brew,zmwangx/brew,gordonmcshane/homebrew,amar-laksh/brew_sudo,mgrimes/brew,JCount/brew,reelsense/brew,gregory-nisbet/brew,mgrimes/brew,claui/brew,pseudocody/brew,Linuxbrew/brew,DomT4/brew,jmsundar/brew,Homebrew/brew,aw1621107/brew,sjackman/homebrew,JCount/brew,toonetown/homebrew,claui/brew,MikeMcQuaid/brew,claui/brew,AnastasiaSulyagina/brew,staticfloat/brew,DomT4/brew,mahori/brew,EricFromCanada/brew,maxim-belkin/brew,hanxue/linuxbrew,Homebrew/brew,Linuxbrew/brew,ilovezfs/brew,AnastasiaSulyagina/brew,vitorgalvao/brew,nandub/brew,EricFromCanada/brew,MikeMcQuaid/brew,mistydemeo/homebrew,pseudocody/brew,bfontaine/brew,JCount/brew,zmwangx/brew,EricFromCanada/brew,gregory-nisbet/brew,muellermartin/dist,pseudocody/brew,staticfloat/brew,konqui/brew,muellermartin/dist,hanxue/linuxbrew,ilovezfs/brew,alyssais/brew,vitorgalvao/brew,konqui/brew,MikeMcQuaid/brew,sjackman/homebrew,nandub/brew