Better fix for https://github.com/tonytomov/jqGrid/commit/841769f54e14646f7277663bf4acd86647cf00a6