Rescue ActiveRecord error to allow code to keep running