Implemented error handling for CommandRegistry.getAllCommandNames()

Here you go. Tested and fixed.