fix implementation of format_get_text script api

The format_get_text API was incorrectly implemented from the scripting
side, so it probably was never used by anyone. Also compare to the
comment in operview.pl where this malfunction was noted.