You don't need the battery in place to slide the alarm onto the base, just the dropped down flag pushed up into the void, thats why I suggested seeing if the alarm still works with the backup battery removed that will verify the supply cable.
The OP said the light still works, so if the alarm does not have power it's only the connection between the light and the alarm that may be suspect.