Fix widget addition regression caused by bad nonce check