self::getManager()->getInfo($appid) is returning null or \OCP\App\IInfo

1. null case is not handled
2. getData() is not a function of \OCP\App\IInfo