fix a really nasty bug in keyphrase_graph.php::match_one_expansion_layer