Fix for Bricks with no contents in editor

If contents is false instead of [], which happens by default, it will
know not to reference contents[0] or add a trailing comma.