R: check for NAs after converting 'type' to logical in bipartite.projection(). Fixes lp bug #1168894.