Remove popup when changing category if empty (fixes #9)