svc: move spatial layer check out of output_picture
svc: move spatial layer check out of output_picture

Prevents unnecessary returns from get_picture and fixes wrong return
value when a lower spatial level was dropped from output_picture()
(0 without a valid picture instead of -EAGAIN).

videolan/dav1d