Property lookup bug in @media queries. Fixes #1315