Redmine#5986: fix to assume all non-specified return codes are failed