Protect from empty project situation.

@cfjedimaster , this is a simple change -- additional to protect against empty project on AppInit. Please review.