It's something I can't fix when you are using mirror mode... which is very frustrating!
I explained it multiple times before that it works fine in injection, but mirror mode screws over the client.
tl;dr
Client issue of mirror mode since begin august:
http://osbot.org/forum/topic/104350-npe-on-getting-an-object/