Fix #863: show proper unique error on duplicate study name