Small change in reporting a missing key exception