Downcast to wrong SfxPoolItem sub-type

Change-Id: I9f4dc2f470f94d6f7cc2959e368fda419d9482c4