fix white screen on first login after fresh install
fix white screen on first login after fresh install

(cherry picked from commit a083226)

salesagility-davidthomson/SuiteCRM,samus-aran/SuiteCRM,gcoop-libre/SuiteCRM,gody01/SuiteCRM,Dillon-Brown/SuiteCRM,lionixevolve/SuiteCRM,lionixevolve/LionixCRM,JimMackin/SuiteCRM,salesagility/SuiteCRM,daniel-samson/SuiteCRM,salesagility-davidthomson/SuiteCRM,ChangezKhan/SuiteCRM,willrennie/SuiteCRM,samus-aran/SuiteCRM,samus-aran/SuiteCRM,noelhunter/SuiteCRM,daniel-samson/SuiteCRM,MikeyJC/SuiteCRM,lionixevolve/LionixCRM,MikeyJC/SuiteCRM,Dillon-Brown/SuiteCRM,samus-aran/SuiteCRM,pribeiro42/SuiteCRM,noelhunter/SuiteCRM,noelhunter/SuiteCRM,JanSiero/SuiteCRM,pribeiro42/SuiteCRM,JanSiero/SuiteCRM,gody01/SuiteCRM,gody01/SuiteCRM,horus68/SuiteCRM-Horus68,dfstrauss/SuiteCRM,dfstrauss/SuiteCRM,lionixevolve/LionixCRM,ChangezKhan/SuiteCRM,JimMackin/SuiteCRM,willrennie/SuiteCRM,JimMackin/SuiteCRM,Dillon-Brown/SuiteCRM,horus68/SuiteCRM-Horus68,cumanacr/SuiteCRM,noelhunter/SuiteCRM,JimMackin/SuiteCRM,lionixevolve/LionixCRM,lionixevolve/SuiteCRM,pgorod/SuiteCRM,cumanacr/SuiteCRM,salesagility/SuiteCRM,ChangezKhan/SuiteCRM,gcoop-libre/SuiteCRM,JanSiero/SuiteCRM,gcoop-libre/SuiteCRM,dfstrauss/SuiteCRM,cumanacr/SuiteCRM,ChangezKhan/SuiteCRM,salesagility-davidthomson/SuiteCRM,pribeiro42/SuiteCRM,pgorod/SuiteCRM,daniel-samson/SuiteCRM,gody01/SuiteCRM,JanSiero/SuiteCRM,lionixevolve/LionixCRM,salesagility-davidthomson/SuiteCRM,salesagility/SuiteCRM,willrennie/SuiteCRM,Dillon-Brown/SuiteCRM,MikeyJC/SuiteCRM,horus68/SuiteCRM-Horus68,pribeiro42/SuiteCRM,lionixevolve/SuiteCRM,MikeyJC/SuiteCRM,salesagility/SuiteCRM,pgorod/SuiteCRM,willrennie/SuiteCRM,lionixevolve/SuiteCRM,dfstrauss/SuiteCRM,lionixevolve/LionixCRM,pgorod/SuiteCRM,horus68/SuiteCRM-Horus68,cumanacr/SuiteCRM,gcoop-libre/SuiteCRM,daniel-samson/SuiteCRM