It turns out that deleting those two lines makes RokSprocket stop behaving well at all. it won't show up on the front end and does not properly render on the back end... then crashes in exit.
The next (ie 2nd) time I try to edit the module I get: Unable to find the RokSprocket layout text. It may be a template specific layout that is not available in the current default template.
I had the same error. Seems to have grown from Joomla not being able to find the formatting sheets for RokSprocket and my reinstalling it while it was there (but who knows).
Anyway, I just deleted line 82 and line 83 and the error at least went away.
Unfortunately I think there is something still wrong as yesterday I had a similar error w/ K2. I disabled K2 but deleting a few lines did not fix it when I tried that first.
Does "config.php" need to be "writable". This is highlighted when I do system checks.
In every event it seems that Joomla is getting some offset registers somehow. Maybe easy but doesn't look like it. I will try your code insertion w/ the newer version numbrs