app/eventdev: add null checks for crypto allocations