Bug 965364 - ApplicationRepository#deploy assumed template application existed

* Put guards and messaging in place for use case where cartridge did not provide application template
Merge pull request #2584 from jwhonce/bug/965364

Merged by openshift-bot