Support non-image displays

LegacyOpener was only returning non-null if a Dataset was opened. This
change allows us to return non-null when opening other objects as well,
e.g. text files.

Note that we do not currently respect the "displayResult" flag for
non-datasets.