Fix test for 05_requirejs example

In the timespan while the PR for `05_requirejs` was getting merged in, the branch diverged
and never picked up this change in test.

A check was added in `BaseView`'s construction to assert `options.app`
exists.