MAX! Binding improved discovery of the Cube

fix for error on first message when no config is provided.

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Would it be possible to refactor some code around here into an own method? I think this would improve readability and make it easier to understand.