Need help to edit Yanfly's Actor code script, to show stats of not in party actor

Here's his script: http://yanflychannel.wordpress.com/rmvxa/core-scripts/ace-message-system/message-actor-codes/

I have a summoning system, and I would like to make a status window setup for them, but you see a Summon is never in the party outside of Battle.

However evidently his script is meant to read off of the menu, so it errors when I try to displays stats for a char who Isn't in the party.

Here's the error I get: line 157: NoMethodError occured

undefined method "id" for nil:NilClass

I know the game keeps records of such internally, that's how char can leave, and then come back with the same lv, stats, ect they had when they left, can someone tell me how to edit it, to allow me to write char pages of Actors who aren't currently in the party?

Edit: My bad, it can do that, just not using negative numbers. Evidently negative numbers strictly go by the Actor placement in the party(while reg numbers read from the database)
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-to-edit-yanflys-actor-code-script-to-show-stats-of-not-in-party-actor.24848/