fixes #4896

See https://github.com/jquery/jquery-mobile/issues/4896