Add support for layers lacking Events mixin. Fixes #1962