Fixed a segfault - checks in->project for null

  The segfault problem was caused by urls which have no project in them.
  This results in "in->project" being NULL and so a SIGSEGV occurs in
  a strcmp at line 127 in filter.c

  tl;dr => NULL safety checks were added

  UPDATE: added test .txt file
  UPDATE: merged with master

Change-Id: I02a80bb106bac9520c6b3a4bcfd1f52c0441ef44