REGISTRAR: fixed null pointer

 - fixed null pointer when getting application by ID
 throw exception instead to display message to user in GUI