Fixed NullPointerException when controller does not existed