Check str before using to avoid js error.
[bug 782975] Waffle switch for limiting users by login.

There is a theory that limiting the users returned for autocomplete widget
to those that have logged in in the last 12 weeks makes it useless. I
added a switch to test this out.