prevent double res.send/json if error occurs in profile image upload