fixes bug 888089 - check for keys before using