Adds size check for map in alert handler's callbacks. Hopefully,
resolves #10