possible fix for #21. if there are no application runs do not execute select, which caused the exception