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>
Merge pull request #166 from Acidity/fixKeyMask

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