Fix potential notice for unknown key with inputSpec