bugfix: error when opening a non-existent vacancy by id