fixes multiple nil-checks for methods (#5806)
fixes multiple nil-checks for methods (#5806)


dom96/Nim,dom96/Nim,tulayang/Nim,russpowers/Nim,russpowers/Nim,russpowers/Nim,tulayang/Nim,dom96/Nim,dom96/Nim,russpowers/Nim,dom96/Nim,tulayang/Nim,russpowers/Nim,russpowers/Nim,tulayang/Nim,russpowers/Nim,tulayang/Nim,dom96/Nim,tulayang/Nim,dom96/Nim