Workaround for SQL error due to Contao bug #6623 (fixes #912)