Fix array overflow with fw_setenv on uninitialised environment