fix reporting of exceptions from config parser
detect and report extra data after end of configuration instead of crashing on NULL dereference later
detect truncated configuration instead of crashing on null-pointer dereference