(NC-155) Fix credential leak

The schema middleware removes from the exception data the schema and
value of arguments that did not actually fail validation. Since the
record containing the database credentials does not have a schema, it
will never fail validation, so it will always be removed. Therefore,
we'll never leak the credentials through validation error messages.