Bug:1394458 Fix SM UI not loading in Windows browsers. Do an explicit check for deps to be loaded.

Change-Id: Ibf14c3dbbed1368cdadd37cd6475a424618202a1
Merge "Bug:1394458 Fix SM UI not loading in Windows browsers. Do an explicit check for deps to be loaded." into R2.0