Improved error checking on triggers

What if the achievement has been deleted?