Fixed code issues found by resharper, targetnullvalue bug in invoice search fixed