PLAT-75 fix the emptyness check for createdByUser

It was checking the createdBy when it should have been checking
createdByUser.

/cc @nmonterroso