Real Madrid missed the chance to set a new La Liga record of 17 consecutive league wins after drawing with Villarreal.