Fixes #2262. Crashed with input html plugin.