refine app-start.js null guard