Fix unit tests

This code has to go in JApplication base really because of the required method. Anyone extending JApplicationBase (next to 0 probability I know but...) will find a fatal error if they don't have the doExecute method now they didn't have before.

It's also why the CMS unit tests are failing.