Suspected bug (adding scenes with python)

Trying adding a scene that doesn’t exist using python.

Adds current scene in place of the one that does not exist.

What I think should happen:
Place a warning in console and do nothing with that line of code.

So is this a bug?
See the example blend below.


bug.blend (433 KB)

I don’t know how the blender devs would categorize this, but I think it should be viewed as a bug.

The same happens with the scene actuator. (finally it is the same code)