Fixed bug with extending rules inside unknown at-rules. Closes #1681