Issue #3463021 by Mingsong: Fatal error due to sessions table missing for first login after installing with a profile
Closes #3463021