Avoid calling expensive methods before checking we need to
getLevelName needs to be called earlier, so it can still thrown
exceptions for invalid levels even without a handler
Merge remote-tracking branch 'edsonmedina/master'