Get active label on active layer
Always use a defined argument for the layer. Otherwise, layer 0 is used as a default value.