uiHttpHandler: return NULL if no ui

This restores missing UI detection for single-file apps, which was lost
in 0f431ed.