Allowing app.js to be undefined or null so invalid paths don't end up in the final list.

Fixes #31