mesa: fix error for negative layer in glFramebufferTextureLayer

Previously this didn't generate an error and so just crashed somewhere
deep in the driver instead.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>