Bug fix to handle AppResults that don't have a relationship to a Sample