Changed behavior of converting to pandoc inline

When the conversion resulted in an empty string then converting to
latex resulted in invalid output.