Check for errors when checking sheet write permission