Thanks for your bug report. This does indeed look like a bug - it should have been returning $null in this case, as otherwise there would be no way to distinguish between no capture and a capture. This issue has been fixed for the next version.