Fix case when no app-specific shells created

@see http://git.io/sFuEAw
Merge pull request #4683 from jadb/3.0-patch-e7357f9

Fix case when no app-specific shells created