Update jQuery.hasData to always return a boolean, with unit tests.