Filter out undefined values in handlers array.
Release 1.2.