alpm/handle.c: ensure handle is not NULL before proceeding