How did you encounter this?
I gave myself the max bag items and it worked fine, no invisible character. I tried another time just giving myself max money and thats when it happens. I think it only happens when you give yourself max money or do something in the trainer info.