Work around browser inconsistency in iframe URL resolution

Fixes systemed/iD#1672