@nomiclabs/hardhat-ethers patch getContractAt doesn't throw anymore if the given address is not a contract.