Avoid SQL error when the url cookie is empty

6 jobs from feature/mysql in 12 minutes and 45 seconds
Status Job ID Name Coverage
  Sqlite
passed #9353
Debian Jessie
sqlite

00:04:02

 
  Postgresql
passed #10819
Jessie Debian
postgresql

00:04:54

failed #9354
Debian Jessie
postgresql

00:02:56

 
  Mysql
passed #10821
Debian Jessie
mysql

00:03:48

failed #10820
Jessie Debian
mysql

00:04:05

failed #9355
Debian Jessie
mysql

00:03:33