pages: Fix incorrect lookup of inline images

In some cases, a POST might be sent to the server and there be no draft. In
such a case, neither the draft nor the body of the page can be inspected for
images. Even worse, in some cases the previous images might be unlinked from
the article without being relinked. Therefore, the images will no longer be
linked to the page and will likely be purged from the system.
Fix #1302. 

Fix issue that fails for get names on incorrect formats. Ex: J.Everybody
Merge pull request #1288 from greezybacon/oops/page-images

pages: Fix incorrect lookup of inline images

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1310 from eleazan/patch-2

Fix #1302.

Reviewed-By: Peter Rotich <peter@osticket.com>
forms: Support non-US locale on client portal

The staff portal has a feature where the date fields are converted to
YYYY-MM-DD prior to form submission. However, this code was not ported to
the client portal. Therefore, for non-US date formats (d/m/Y for instance)
would not be processed properly by the server and would be nulled prior to
validation.
Merge pull request #1320 from greezybacon/issue/client-portal-date-fields

forms: Support non-US locale on client portal

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge remote branch 'upstream/develop' into develop-next

Conflicts:
	js/osticket.js