Checking for a second time if there is an Origin header to prevent a
NullPointerException when no Origin is specified.