Fix ValidationError patches for Django 1.6.