If a class doesn't have a non-namespaced class (e.g. the WIP API Application) but does have an entry in the container, at the moment we bail because JApplicationApi doesn't exist (which it doesn't). This moves the class exists check until later in the process so we check the container before throwing an exception.
Merging with @mbabker 's review so I can work on webservices