Check signature of drawn object not just truthyness

This is to get around the bug when setting the 'showCursorWhenSelecting'
option to true via the #setOption method which allows the true value
to fall through to updateSelection - passing the truthy test but
throwing an error when trying to appendChild null