Fixed #78: Empty resourceKey lead to empty string being a key.