Allow invalid configuration files to be edited

Fixes #1123.