apl_gradebook: apl_closebook NULL checks param

So the code doesn't need to NULL check everything before passing it
to apl_closebook