Don't write if bety == FALSE (redmine #1648)