Gracefully handle links and links_short table 'Data too long for column' errors, closes #1529