Test for references instead of # of lines

Should prevent nested bower blocks from producing a js or css reference
when no assets are within the block.