NODE-278 throw error on query selector being a non-object