convert complexity to integer in case nil

Unsure if this can/would ever happen in rubycritic naturally, but using AnalyzedModue in a new gem I'm working on, I had complexity as a nil value there causing an exception, this seems slightly preferable.