Creating a bean with an empty map throws a ClassCastException

I noticed that creating a bean with an empty map doesn't work correctly. This one-liner fixes that by ensuring that 'map->attribute-infos' always returns a MBeanAttributeInfo[].

I know that you can't accept PR but you can go ahead and do this one-liner yourself.

Thx!

David