Fixed term lookup bug, made patientsimilarityviewfactory intialization cached as temporary fix for double-loading, and fixed null data being erroneously passed to UI resulting in match display problems.