do not return partially initialized messages on error
Added Travis CI support