Make as-map for Key nil-safe