Update splashscreen.js

Checking navigator.splashscreen is not null to prevent console errors when testing in browser (not in device)