Bug fix in regexp that extracts extension body from source

* Fixes crashers in rt testing.

Change-Id: I3d2fe3064775da7c645f696ce86ea28b6dbb6139