Issue #1798880 by andyceo, LinL, mtunay: Convert teaser_length() to use configuration system.

PR for https://github.com/backdrop/backdrop-issues/issues/170