Previously addChild was checking this: `if(child.parent != undefined)` but testing just for 'undefined' isn't enough, as the parent is set to 'null' in DisplayObject.js, so this condition fails and throws an error as it tries to removeChild from null.
Merge pull request #457 from photonstorm/dev

Fix for addChild when parent is null