Fixing NPE occuring when from and to are null in search result from server (happens when an error is reported).