Yeah I didn't pass air law before my first solo as I had been ill with swine flu so my brain wasn't functioning
You are right, schools prefer it, but it's not compulsory. My school was very understanding and let me fly solo anyway and catch up the air law exam a couple of weeks later.