quick fix to 500 error when bad calls to get editor