Handle native querySelector returning nothing

	- Fixes #476
	- Added tests