Fix #1126: Set a default value if a wrong bglayer name is provided

Fix #1126