Fixed issue #18. Gates with 'null' as location did cause exceptions at many locations.