Bugfix: ambiguous semantics of the layers_count() method caused M73 to go beyond 100%. #1670