Handle crashed occuring when trying to setFragment and devices is paused

Signed-off-by: Frca <killerfrca@gmail.com>
Registering exams is now working

Signed-off-by: Frca <killerfrca@gmail.com>