GROOVY-6101: VerifyError when using null-safe navigation on a method that returns a primitive type