fix potential nil incoming on ipath for application external api

- When ipath comes in as `nil` on the `args` hash, we try and slice and get a `no_method_error`!
- Adding a test for the instantiation of `ApplicationExternal` model.