Now that this is handled by a Requirement with a default formula, this code cannot be triggered under normal circumstances. The advice given has now been moved to the Formula Cookbook on the wiki.