Fix NullPointerException in CookierBaker.encode