Use Map.get/3 in case the key does not exist.
Adds a controller test.