Allow LayeredComponentMixin renderLayer() to return null

Test Plan:
Ran the included test before and after the change. Saw that "should
allow empty layers" failed before, but passes now.