empty app fixes

fixes multiple observed issues with forms that don't have an associated app_id or where the app couldn't be found.