Fixes a crash that could occur cleaning up videopress markup if an expec...

...ted match was not found.

Clarifies variable names and adds soem comments.
In a case where a match is not found the VideoPress markup is replaced with an empty string.
Fixes #963