* Adds null and empty checks to all key generators. * Also improves error messaging for key generator issues.