Do not set module symbol if the result is not list

ghc-modi returns error message string at error.