Fix webtests

 * Macros expanding to block-level elements inside an inline scope is now fixed handled by breaking the containing element apart and promoting the macro to the containing block scope.

 * Empty table cells no longer cause a null pointer exception.

 * Checking for the lock lost error message in webtests is now case insensitive, as the string "lock" was being looked for, but the error message had been changed to "Lock..."