fixed import + NPE when no origin header is set
Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>