NPE in InstructorCourseAddAction #2545

For Issue #2545

Changed createEntity to return the created entity instead of querying for the same entity.