Added a workaround to prevent ai.GetTaskID from returning nil

Signed-off-by: Bryce Walther <bryce@brycewalther.com>