Fixes a minor bug with the return of masks for objects that use the KeyMask object.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>