Avoid side-effects when calling jQuery.hasData

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>