I am having the same issue. Also occurs when trying to use the RequireUnique function. Error is occuring in the core.js on line 5767 the variable matches is null.
Snippet from core.js
var matches = Array();
function ConvertEntityToSpan(ctx, entity)
{
if(matches[ctx]==null)
Before the call to SPRedirectWithID the variable matches is set. After the call it is null. Haven't looked into a fix but hope that helps.