Fix gQuery failing when managing non native element objects