Fixing error where an empty contributor is added to the database