to_hstring(...) and friends cause an out-of-bounds error with null ranges
Description
to_hstring(...) and friends produce an out of bounds error when called with a null range.
Expected behaviour
to_hstring(...) returns an empty string when supplied with a null range.
See this GHDL issue report for a possible workaround/fix.