Raise error if setting invalid branch property
Handle ArgumentError when setting invalid property