bugfix in prompt segment concatination so that a nothing value concatted to a Just value does not yield Nothing