Fix Sqlite upgrade test when profiling to database is enabled

The 'profiling' table is missing from expected tables when
$wgProfileToDatabase is set to true, since patch-profiling.sql
is applied while updating in this case.

Change-Id: Iedbe72dca1deda728304fb95fe19ef3b4bdad8de
Merge "Fix Sqlite upgrade test when profiling to database is enabled"