Prevent crash if transaction missing from database and details screen is opened