fix lua error when research status not found and add support function for Trainer

Author Leandro Silva <lansoweb@hotmail.com>
Author date 2020-03-22 10:41:45
Author local date 2020-03-22 07:41:45 -0300
Committer Leandro Silva <lansoweb@hotmail.com>
Committer date 2020-03-22 10:41:45
Committer local date 2020-03-22 07:41:45 -0300
Commit 3f10958b1721fcbbbbbbcf854a9d77963528d4fc
Tree cac702141a91764c6d973d06361acc2976e94439
Parent 7601d4cad99e265e3c6b53362cb21589557bcc20
fix lua error when research status not found and add support function for Trainer