/url endpoint checks for missing POST params

The /url endpoint was not checking for missing
POST parameters and an error was occuring when
the url parameter was missing.

Bug: T76702
Change-Id: I8a32d34ac805d458a2fe0954de8811bf4a41ade2