Make page element in OpenURL generation more resilient to non-wellformed page strings, refs #1571